package com.bean.token;

import java.io.Serializable;

/**
 * Token实体
 */
public class Token implements Serializable {

    /** token字符串(必须) */
    private String token;
    /** token的失效周期(必须) */
    private int expire;
    /** (可选) */
    private String userName;

    public Token() {
    }

    public Token(String token, int expire) {
        this.token = token;
        this.expire = expire;
    }

    @Override
    public String toString() {
        return "Token{" +
                "token='" + token + '\'' +
                ", expire=" + expire +
                '}';
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getExpire() {
        return expire;
    }

    public void setExpire(int expire) {
        this.expire = expire;
    }
}
